package com.system.honour.mapper;

import com.system.honour.entity.SysRoleUser;
import com.system.honour.entity.SysRoleUserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SysRoleUserMapper {
    long countByExample(SysRoleUserExample example);

    int deleteByExample(SysRoleUserExample example);

    int insert(SysRoleUser record);

    int insertSelective(SysRoleUser record);

    List<SysRoleUser> selectByExample(SysRoleUserExample example);

    int updateByExampleSelective(@Param("record") SysRoleUser record, @Param("example") SysRoleUserExample example);

    int updateByExample(@Param("record") SysRoleUser record, @Param("example") SysRoleUserExample example);

    List<SysRoleUser> getByUserId(@Param("userId") Integer userId);

    int updateByUserId(@Param("record") SysRoleUser record);

    int deleteByUserId(@Param("id")Integer id);

    int deleteByRoleId(@Param("roleId")Integer roleId);
}